@model InvoiceProject.Models.Quote

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Quote</legend>

    <div class="display-label">DateModified</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateModified)</div>

    <div class="display-label">UserModified</div>
    <div class="display-field">@Model.UserModified</div>

    <div class="display-label">Customer</div>
    <div class="display-field">@(Model.Customer == null ? "None" : Model.Customer.LastName)</div>

    <div class="display-label">Business</div>
    <div class="display-field">@(Model.Business == null ? "None" : Model.Business.Name)</div>

    <div class="display-label">TotalIncTax</div>
    <div class="display-field">@String.Format("{0:F}", Model.TotalIncTax)</div>

    <div class="display-label">TotalTax</div>
    <div class="display-field">@String.Format("{0:F}", Model.TotalTax)</div>

    <div class="display-label">InvoiceDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.InvoiceDate)</div>

    <div class="display-label">InvoiceItems</div>
    <div class="display-field">@(Model.InvoiceItems == null ? "None" : Model.InvoiceItems.Count.ToString())</div>

    <div class="display-label">QuoteDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.QuoteDate)</div>

    <div class="display-label">ExpiryDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.ExpiryDate)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


